class Chances extends egret.DisplayObjectContainer {
    private h_appear:egret.Bitmap;
    private sign:egret.Bitmap;
    public times:egret.BitmapText = new egret.BitmapText();;
    
    public constructor(){
        super();

        //小易头像
        RES.getResByUrl("resource/assets/time_chance.fnt" , this.headAppear , this,RES.ResourceItem.TYPE_FONT);

        // X
        RES.getResByUrl("resource/assets/time_chance.fnt" , this.sign_x , this,RES.ResourceItem.TYPE_FONT);

        //机会
        RES.getResByUrl("resource/assets/time_chance.fnt" , this.Chance , this,RES.ResourceItem.TYPE_FONT);
    }

    private headAppear(font:egret.BitmapFont):void{
        let h_appear:egret.BitmapText = new egret.BitmapText();
        h_appear.font = font;
        h_appear.scaleX = 0.65;
        h_appear.scaleY = 0.65;
        h_appear.x = 10;
        h_appear.y = 10;
        this.addChild(h_appear);
        h_appear.text = "h";
    }

    private sign_x(font:egret.BitmapFont):void{
        let bitmapText:egret.BitmapText = new egret.BitmapText();
        bitmapText.font = font;
        bitmapText.scaleX = 0.5;
        bitmapText.scaleY = 0.6;
        bitmapText.x = 140;
        bitmapText.y = 30;
        this.addChild(bitmapText);
        bitmapText.text = "x";
    }

    // 机会
    public Chance(font:egret.BitmapFont){       
        this.times.font = font;
        this.times.scaleX = 0.5;
        this.times.scaleY = 0.5;
        this.times.x = 200;
        this.times.y = 40;
        this.addChild(this.times);
        // this.times.text = "3";
    }


}